EXPORT_TO_QUICKBOOKS Function
Syntax
Arguments
- tablename_fully_qualified
The full filename and path of the Alpha table being exported.
- fromTbl
The name of the Alpha table.
- qbTbl
The name of the QuickBooks table.
- SQLStatement
An SQL statement that defines the records to select from the Alpha table.
- quickbooks_field_map
A list of the fields that each Alpha record contains.
- a5_field_map
A list of the fields that will receive each of the corresponding fields from the Alpha record. NOTE: Normally, there will be a one-to-one mapping of fields between the two databases. But, this is not required. In the example below both the Alpha table Name and CompanyName fields are mapped to the QuickBooks A5_QB_CUSTOMER.company field.
Description
EXPORT_TO_QUICKBOOKS() exports an Alpha table to QuickBooks.
Discussion
EXPORT_TO_QUICKBOOKS() is a part of QLinker, which is available as an optional add-in for Alpha Anywhere. To export an Inventory Part to QuickBooks:
- 1.
First add at least one inventory part and one bank account to QuickBooks.
- 2.
Each record must have fields that specify Asset, Cost of Goods Sold (COGS), and Income account values that match your QuickBooks database.
- 3.
Adding of inventory parts does not support sub-items.
To export a Non-Inventory Part to QuickBooks: Each record must have a field that specifies an Account Number value that matches your QuickBooks database. To export a Service Part to QuickBooks: Each record must have a field that specifies an Account Number value that matches your QuickBooks database. QLinker can export data from Alpha Anywhere to the following QuickBooks tables:
When you export data from Alpha Anywhere to QuickBooks, the data is appended to the existing data in the QuickBooks tables, with the following exception. When you export information from Alpha Anywhere to the Customer, Vendor or Employee tables, if a matching record is found in the corresponding QuickBooks table, the contact information is updated with the information from Alpha Anywhere.
- Bill Invoice Service
- Customer Inventory Part Vendor
- Employee Non-inventory Part
Example
This example is expanded over multiple lines to improve its readability. The "\" character allows you to extend the command to multiple lines.
Export_To_Quickbooks( \ "C:\Program Files\A5V5\QLinker\Export Samples\Qb_Customer.Dbf", \ "QB_CUSTOMER", \ "Customer", \ "SELECT * FROM QB_CUSTOMER", \ "Name, CompanyName, BillAddress_Addr1, BillAddress_Addr2, BillAddress_City, BillAddress_State, BillAddress_PostalCode, BillAddress_Country, ShipAddress_Addr1, ShipAddress_Addr2, ShipAddress_City, ShipAddress_State, ShipAddress_PostalCode, ShipAddress_Country, Phone, Fax, Email, Notes", \ "A5_QB_CUSTOMER.company, A5_QB_CUSTOMER.company, A5_QB_CUSTOMER.bill_addre, A5_QB_CUSTOMER.bill_addr0, A5_QB_CUSTOMER.bill_city, A5_QB_CUSTOMER.bill_state, A5_QB_CUSTOMER.bill_posta, A5_QB_CUSTOMER.bill_count, A5_QB_CUSTOMER.ship_addre, A5_QB_CUSTOMER.ship_addr0, A5_QB_CUSTOMER.ship_city, A5_QB_CUSTOMER.ship_state, A5_QB_CUSTOMER.ship_posta, A5_QB_CUSTOMER.ship_count, A5_QB_CUSTOMER.phone, A5_QB_CUSTOMER.fax, A5_QB_CUSTOMER.email, A5_QB_CUSTOMER.notes")
Limitations
Desktop applications only.
See Also